/* 基本布局设置 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #303133;
}

#app {
  height: 100%;
}

/* 重要：防止嵌套布局错误 */
.el-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.el-container.is-vertical {
  flex: 1;
  flex-direction: column;
}

.el-container:not(.is-vertical) {
  flex-direction: row;
}

.el-aside {
  overflow: hidden;
}

.el-main {
  flex: 1;
  overflow: auto;
}

/* 美化样式 */
.el-table {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
}

.el-table th {
  background-color: #f5f7fa !important;
  font-weight: 600;
  color: #606266;
}

.el-table__row:hover {
  background-color: #f0f5ff !important;
}

/* 按钮美化 */
.el-button--primary {
  background-color: #3f51b5;
  border-color: #3f51b5;
  transition: all 0.3s ease;
}

.el-button--primary:hover, 
.el-button--primary:focus {
  background-color: #4c5ec7;
  border-color: #4c5ec7;
  box-shadow: 0 2px 6px rgba(63, 81, 181, 0.3);
}

.el-button--success {
  background-color: #4caf50;
  border-color: #4caf50;
  transition: all 0.3s ease;
}

.el-button--success:hover, 
.el-button--success:focus {
  background-color: #66bb6a;
  border-color: #66bb6a;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.el-button--danger {
  background-color: #f44336;
  border-color: #f44336;
  transition: all 0.3s ease;
}

.el-button--danger:hover, 
.el-button--danger:focus {
  background-color: #ef5350;
  border-color: #ef5350;
  box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

/* 表单美化 */
.el-form-item__label {
  font-weight: 500;
  color: #606266;
}

.el-input__inner {
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  transition: all 0.3s ease;
}

.el-input__inner:hover {
  border-color: #c0c4cc;
}

.el-input__inner:focus {
  border-color: #3f51b5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

/* 卡片美化 */
.el-card {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.el-card:hover {
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.12);
}

.el-card__header {
  padding: 16px 20px;
  font-weight: 500;
  border-bottom: 1px solid #ebeef5;
}

/* 分页美化 */
.el-pagination {
  padding: 16px 0;
  text-align: right;
}

.el-pagination button:hover {
  color: #3f51b5;
}

.el-pager li.active {
  background-color: #3f51b5;
  color: #fff;
}

.el-pager li:hover {
  color: #3f51b5;
}

/* 菜单样式 */
.el-menu-vertical .el-menu-item {
  height: 50px;
  line-height: 50px;
}

.el-menu-vertical .el-submenu__title {
  height: 50px;
  line-height: 50px;
} 